package com.gen.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.Map;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "gen_domain_model", autoResultMap = true)
public class DomainModel extends BaseEntity {
    
    private String name;
    private String identifier;
    
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private List<DomainField> fields;
    
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private List<Map<String, String>> validationRules;
    
    private String description;
}
